﻿@{
	Layout = "~/Views/Shared/_Layout.cshtml";
	var prifix = "Ac_Menu_Roles_";
}
<div class="mini-toolbar" style="border: 0; padding: 2px;">
	<div style="float: left">
		@{Html.RenderPartial("Partials/UiViewButtons");}
	</div>
	<div style="float: right">
		<div id="@(prifix)rbIsAssigned" class="mini-radiobuttonlist" repeatitems="3" repeatlayout="table" repeatdirection="horizontal"
			 textfield="name" valuefield="code" value="true" style="float:left;"
			 data="[{code:'',name:'全部'},{code:'true',name:'已授予'},{code:'false',name:'未授予'}]">
		</div>
		<input id="@(prifix)key" class="mini-textbox" emptytext="请输入关键字" style="width: 150px;" />
		<a id="@(prifix)btnSearch" class="mini-button">查询</a>
	</div>
	<div style="clear: both;">
	</div>
</div>
<!--撑满页面-->
<div class="mini-fit">
	<div id="@(prifix)datagrid1" class="mini-datagrid" style="width:100%;height:100%;" allowalternating="true"
		 url="@Url.Action("GetPlistMenuRoles", "Role")" idfield="Id" multiselect="true"
		 sizelist="[5,10,20,50]" pagesize="10" allowcelledit="true">
		<div property="columns">
			<div type="indexcolumn"></div>
			<div field="IsAssigned" width="50" type="checkboxcolumn" headeralign="center" allowsort="true" align="center">
				是否授予？
			</div>
			<div field="Name" width="120" headeralign="center" allowsort="true">
				名称
			</div>
			<div field="IsEnabled" width="60" headeralign="center" align="center"
				 allowsort="true">
				有效状态
			</div>
			<div field="SortCode" width="50" headeralign="center" align="center" allowsort="true">
				@Html.IconLabel("SortCode")
			</div>
			<div field="CreateBy" width="80" headeralign="center" allowsort="true">
				授权人
			</div>
			<div field="CreateOn" width="100" headeralign="center" dateformat="yyyy-MM-dd HH:mm:ss" allowsort="true">
				@Html.IconLabel("CreateOn")
			</div>
		</div>
	</div>
</div>
@section Foot{
	<script type="text/javascript" src="@Url.Content("~/Scripts/Areas/Ac/Menu/Roles.cshtml.js")"></script>
}